#!/bin/python
class Pager:
    def __init__(self, current_page):
        self.current_page=current_page
        self.per_items = 10
    @property
    def start(self):
        val = (self.current_page-1) * self.per_items
        return  val
    @property
    def end(self):
        val = self.current_page * self.per_items
        return val

#调用
p = Pager(1)
print(p.start)
print(p.end)